/* Variables */
:root {
  --youpay-button-border-radius: 0px;
  --youpay-button-height: 52px;
  --youpay-gradient: linear-gradient(90deg, rgba(123,82,170,1) 0%, rgba(67,68,151,1) 26%, rgba(46,70,153,1) 57%, rgba(46,70,153,1) 69%, rgba(27,111,200,1) 100%);
  --youpay-gradient-hover: linear-gradient(90deg, rgba(123,82,170,1) 0%, rgba(67,68,151,1) 17%, rgba(39,51,141,1) 40%, rgba(39,51,141,1) 70%, rgba(26,89,159,1) 90%);
  --youpay-gradient-callout: linear-gradient(42deg, rgba(67,68,151,1) 5%, rgba(39,51,141,1) 40%, rgba(39,51,141,1) 70%, rgba(26,89,159,1) 97%);
  --youpay-logo-height: 16px;
}

.youpay-disabled:not(.youpay-preview-enabled) .youpay-block-container, .youpay-disabled:not(.youpay-preview-enabled) .youpay-container {
    display: none!important;
}

.shopify-block.youpay-block-container {
    margin-top: 0;
    margin-bottom: 0;
}

.youpay-button {
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border: none;
    border-radius: 0;
    outline: none;
    box-shadow: none;
}

.youpay-button > * {
  pointer-events: none;
}

.youpay-text-group, .youpay-logo-container {
    display: inline-block;
    vertical-align: middle;
}

.youpay-button .youpay-text-group {
    z-index: 2;
}

.youpay-text-group span {
    white-space: nowrap;
}

/* reset - change this id/class in new badge build */
.youpay-callout-button #youpay-product-message * {
  pointer-events: none;
}

.youpay-button-group {
    margin-top: 10px;
    margin-bottom: 10px;
}

.youpay-mobile-device .youpay-button-group {
    min-width: 100%;
}

/*  Vanilla Button CSS  */
.youpay-button-group[data-theme="vanilla"] .youpay-button, #monster-upsell-cart .youpay-button-group[data-theme="vanilla"] .youpay-button {
    font-size: 14px;
    font-weight: 400;
    background: transparent;
    color: #000000;
    height: 50px;
    text-transform: uppercase;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #000000;
}

.youpay-button-group[data-theme="vanilla"] .youpay-button:hover, #monster-upsell-cart .youpay-button-group[data-theme="vanilla"] .youpay-button:hover {
    color: #ffffff;
    background: #000000;
}

.youpay-button-group[data-theme="vanilla"] .youpay-logo-container .youpay-logo path:nth-of-type(3) {
    fill: transparent;
}

/*  Blue Button CSS  */
.youpay-button-group[data-theme="blue"] .youpay-button, #monster-upsell-cart .youpay-button-group[data-theme="blue"] .youpay-button {
    font-size: 16px;
    font-weight: 400;
    border-radius: var(--youpay-button-border-radius);
    background: var(--youpay-gradient);
    color: #171717;
    height: var(--youpay-button-height);
    letter-spacing: -0.02em;
    text-transform: lowercase;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.youpay-button-group[data-theme="blue"] .youpay-button:hover, #monster-upsell-cart .youpay-button-group[data-theme="blue"] .youpay-button:hover {
    background: var(--youpay-gradient-hover);
}

.youpay-button-group[data-theme="blue"] .youpay-button .youpay-text-group span {
      color: white;
      font-family: 'Yeseva One', serif;
      white-space: nowrap;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
}

/*  Triangle for inline blue button 	 */
.youpay-button-group[data-theme="blue"] .youpay-button::before, #monster-upsell-cart .youpay-button-group[data-theme="blue"] .youpay-button::before {
  content: "";
  height: 0;
  position: relative;
  border-style: solid;
  border-width: 10px 11px 0 11px;
  border-color: #F796B9 transparent transparent transparent;
  left: 11px;
  top: -1.5px;
  z-index: 1;
  margin-left: -11px;
}

.youpay-button-group[data-theme="blue"] .youpay-button.youpay-logo-only::before, #monster-upsell-cart .youpay-button-group[data-theme="blue"] .youpay-button.youpay-logo-only::before {
    content: none;
}

.youpay-button-group[data-theme="blue"] .youpay-logo-container,
.youpay-button-group[data-theme="vanilla"] .youpay-logo-container {
  height: calc(var(--youpay-logo-height) - 2px);
  margin-left: 6px;
}

.youpay-button-group[data-theme="blue"] .youpay-button.youpay-logo-only .youpay-logo-container {
    margin-left: 0;
}

.youpay-button-group[data-theme="blue"] .youpay-logo-container .youpay-logo,
.youpay-button-group[data-theme="vanilla"] .youpay-logo-container .youpay-logo {
    width: auto;
    vertical-align: top;
    height: var(--youpay-logo-height);
}

.youpay-button-group[data-theme="blue"] .youpay-logo-container .youpay-logo path:nth-of-type(1) {
    color: #ffffff;
}

.youpay-button-group[data-theme="blue"] .youpay-logo-container .youpay-logo path:nth-of-type(2) {
    color: #F796B9;
}

.youpay-button-group[data-theme="blue"] .youpay-logo-container .youpay-logo path:nth-of-type(4) {
    color: #0CD9DC;
}

/* YouPay Callout Button CSS */
/* reset - clean up with new callout layout */
.youpay-callout-button {
    border: none;
    cursor: pointer;
    outline: none;
    box-shadow: none;
    border-radius: 0;
    background: none;
    -webkit-appearance: none;
    margin: 0;
    padding: 0;
    color: inherit;
    font-size: inherit;
    letter-spacing: 0.06rem;
    text-align: left;
}

.youpay-callout-button:hover, .youpay-callout-button:focus {
    border: none;
    cursor: pointer;
    outline: none;
    box-shadow: none;
    border-radius: 0;
    background: none;
    -webkit-appearance: none;
    color: inherit;
}

.youpay-callout-button > * {
    pointer-events: none;
}

.youpay-callout-container[data-theme="badge"] {
    margin-top: 10px;
}

.youpay-callout-content {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    font-weight: 400;
    width: auto;
    align-items: center;
}

.youpay-callout-message-before {
    margin: 0.5rem 0.5rem 0.5rem 0;
    line-height: 1;
    display: flex;
    align-items: center;
    font-size: 14px;
}

.youpay-callout-badge {
    background:  var(--youpay-gradient-callout);
    border-radius: 4px;
    padding: 9px 7px;
    display: flex;
    align-items: center;
    margin-right: 0.5rem;
}

.youpay-callout-content .youpay-callout-badge.youpay-callout-slim {
    border-radius: 50px;
    padding: 7px 9px;
}

.youpay-callout-content .youpay-callout-slim .youpay-badge-logo {
    width: 60px;
    height: auto;
}

.youpay-badge-logo {
    margin-left: .25rem;
    margin-right: .25rem;
    margin-top: 1px;
    width: 70px;
    height: auto;
}

.youpay-callout-message-after {
    margin: 0;
    text-decoration: underline;
    line-height: 1;
    display: flex;
    align-items: center;
    font-size: 14px;
}

/* Badge Callout CSS */
.youpay-callout-container[data-theme="badge"] .youpay-logo-text {
    fill: #ffffff;
}

/* Light Callout CSS */
.youpay-callout-container[data-theme="light"] .youpay-logo-text {
    fill: black;
}

.youpay-callout-container[data-theme="light"] .youpay-light-logo {
    margin-left: .25rem;
    margin-right: .25rem;
    margin-top: 4px;
    width: 80px;
}

.youpay-callout-container[data-theme="light"] .youpay-callout-message-before {
    margin-right: 0;
}

/* adjust light version for new HTML layout */
.youpay-light-button button {
    background: none;
}

.youpay-light-button #youpay-popup-box .youpay-logo {
    width: 77px;
}

/* Pending modal cover */
#pending-modal-cover {
    display: block;
}

/* Modal */
#youpay-info-modal {
    display: block;
}
